home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Devices and Hardware / ADB / ControlKeyPatch / ControlKeyTest.r < prev    next >
Encoding:
Text File  |  2000-09-28  |  1.6 KB  |  70 lines  |  [TEXT/MPS ]

  1. /*    File:        ControlKeyTest.r
  2.     
  3.     Description: 
  4.              routines for patching the ADB manager to simulate the control
  5.             key being held down.  This file contains a rez resource definitions
  6.             for the file ControlKeyTest.
  7.  
  8.     Author:    John Montbriand
  9.  
  10.     Copyright: 
  11.             Copyright © 1999 by Apple Computer, Inc.
  12.             All rights reserved worldwide.
  13.     
  14.     Disclaimer:
  15.             You may incorporate this sample code into your applications without
  16.             restriction, though the sample code has been provided "AS IS" and the
  17.             responsibility for its operation is 100% yours.  However, what you are
  18.             not permitted to do is to redistribute the source as "DSC Sample Code"
  19.             after having made changes. If you're going to re-distribute the source,
  20.             we require that you make it clear in the source that the code was
  21.             descended from Apple Sample Code, but that you've made changes.
  22.     
  23.     Change History (most recent first):
  24.             27/8/99 created by John Montbriand
  25. */
  26.  
  27. #include "Processes.r"
  28. #include "CodeFragments.r"
  29.  
  30. include "ControlKeyTest.rsrc";
  31.  
  32. include ":obj:ControlKeyPatch.rsrc";
  33.  
  34. resource 'SIZE' (-1, purgeable)  {
  35.     reserved,
  36.     ignoreSuspendResumeEvents,
  37.     reserved,
  38.     canBackground,
  39.     needsActivateOnFGSwitch,
  40.     backgroundAndForeground,
  41.     dontGetFrontClicks,
  42.     ignoreAppDiedEvents,
  43.     is32BitCompatible,
  44.     notHighLevelEventAware,
  45.     localAndRemoteHLEvents,
  46.     notStationeryAware,
  47.     dontUseTextEditServices,
  48.     reserved,
  49.     reserved,
  50.     reserved,
  51.     1024 * 40,
  52.     1024 * 40
  53. };
  54.  
  55.  
  56. resource 'cfrg' (0) {
  57.     {    kPowerPC,
  58.         kFullLib,
  59.         kNoVersionNum,
  60.         kNoVersionNum,
  61.         kDefaultStackSize,
  62.         kNoAppSubFolder,
  63.         kIsApp,
  64.         kOnDiskFlat,
  65.         kZeroOffset,
  66.         kWholeFork,
  67.         "ControlKeyTest"
  68.     }
  69. };
  70.